﻿package mortal.component.gconst
{
    import com.mui.core.*;
    import com.mui.display.*;
    import com.mui.utils.*;
    import flash.display.*;
    import flash.geom.*;

    public class ResourceConst extends Object
    {
        private static var _defaultRec:Rectangle = new Rectangle(0, 0, 1, 1);
        public static var _scaleMap:Object = {WindowBg:new Rectangle(45, 52, 1, 1), WindowBgSmall:new Rectangle(115, 75, 1, 1), WindowCenterA:new Rectangle(20, 31, 36, 37), WindowBg1:new Rectangle(35, 25, 1, 1), ChatWindowBg:new Rectangle(30, 38, 1, 1), WindowCenterB2:new Rectangle(75, 58, 1, 1), InputBg:new Rectangle(8, 8, 60, 8), TipsBg:new Rectangle(100, 50, 1, 1), ToolTipBg:new Rectangle(10, 10, 9, 19), ToolTipBgBai:new Rectangle(51, 76, 1, 1), ToolTipBgHong:new Rectangle(51, 76, 1, 1), ToolTipBgLv:new Rectangle(51, 76, 1, 1), ToolTipBgLan:new Rectangle(51, 76, 1, 1), ToolTipBgZi:new Rectangle(51, 76, 1, 1), ToolTipBgCheng:new Rectangle(51, 76, 1, 1), MenuBg:new Rectangle(16, 18, 1, 1), SplitLine:new Rectangle(83, 0, 1, 2), SplitLine3:new Rectangle(3, 0, 1, 2), SplitLine4:new Rectangle(48, 0, 1, 1), SplitLine5:new Rectangle(0, 22, 1, 1), SplitLine6:new Rectangle(31, 0, 1, 2), VSplitLine:new Rectangle(0, 31, 2, 1), ComboBg:new Rectangle(8, 8, 60, 5), ComboboxCell_over:new Rectangle(46, 10, 1, 1), expBg:new Rectangle(36, 1, 70, 4), expBar:new Rectangle(15, 3, 20, 1), DisabledBg:new Rectangle(15, 3, 50, 1), RoleBarBg:new Rectangle(15, 3, 50, 1), ShenminBar:new Rectangle(10, 3, 1, 1), LanBar:new Rectangle(10, 3, 20, 1), JinyanBar:new Rectangle(10, 3, 20, 1), RoleInfoBg:new Rectangle(37, 66, 1, 1), AvatarXueBar:new Rectangle(10, 3, 1, 1), AvatarLanBar:new Rectangle(15, 3, 50, 1), GroupBtn:new Rectangle(10, 10, 2, 2), LimitBuyBg:new Rectangle(70, 115, 2, 2), GoodsBg:new Rectangle(30, 30, 2, 2), DisabledBg:new Rectangle(10, 10, 2, 2), PetLifeBg:new Rectangle(17, 6, 1, 1), PetNameBg:new Rectangle(63, 13, 1, 1), SelectBg:new Rectangle(40, 10, 1, 1), selectedBg:new Rectangle(12, 8, 1, 1), MountCardSelectBg:new Rectangle(20, 20, 1, 1), ComboBox:new Rectangle(10, 10, 2, 2), InputDisablBg:new Rectangle(10, 5, 2, 10), ChatSendBg:new Rectangle(55, 15, 2, 2), ChatPanelBg:new Rectangle(70, 35, 1, 1), selectFilter:new Rectangle(17, 15, 1, 1), WindowBgC:new Rectangle(30, 30, 15, 15), ChatMenuBg:new Rectangle(27, 30, 2, 2), ChatNotesBg:new Rectangle(5, 5, 1, 1), Menu_overSkin:new Rectangle(23, 9, 40, 1), Menu2_overSkin:new Rectangle(20, 10, 1, 1), ChatOtherTalkBg:new Rectangle(30, 12, 1, 1), ChatSelfTalkBg:new Rectangle(20, 12, 1, 1), TextBg2:new Rectangle(25, 14, 1, 1), MarketCatogeryBtn:new Rectangle(44, 12, 1, 1), guildNoticeBg:new Rectangle(70, 35, 1, 1), WindowBgLine:new Rectangle(74, 2, 1, 1), SmallWindowBgLine:new Rectangle(9, 2, 1, 1), SceneTalkOtherBg:new Rectangle(25, 24, 200, 40), SceneTalkSelfBg:new Rectangle(80, 15, 20, 20), taskItemSelected:new Rectangle(4, 4, 140, 15), petSealUpBg:new Rectangle(33, 41, 1, 1), JinbiBig:new Rectangle(30, 30, 1, 1), YuanbaoBig:new Rectangle(30, 30, 1, 1), PanelBg:new Rectangle(20, 10, 1, 1), PanelBg2:new Rectangle(17, 6, 10, 10), Call2Bg:new Rectangle(58, 10, 1, 1), PackBtn:new Rectangle(12, 12, 1, 1), PlayerBg:new Rectangle(33, 38, 1, 1), SelsetBg:new Rectangle(21, 2, 1, 1), CombatTextBg:new Rectangle(8, 8, 10, 10), PackDisable2:new Rectangle(18, 18, 1, 1), ItemBuyBg:new Rectangle(74, 53, 1, 1), AttributeBg:new Rectangle(94, 63, 1, 1), guildInfoBg:new Rectangle(113, 210, 1, 1), TaskTrackBg:new Rectangle(52, 46, 1, 1), taskTrackBg2:new Rectangle(107, 46, 1, 1), ColorBgCheng:new Rectangle(47, 72, 1, 1), ColorBgLan:new Rectangle(47, 72, 1, 1), ColorBgLv:new Rectangle(47, 72, 1, 1), ColorBgZi:new Rectangle(47, 72, 1, 1), ColorBgBai:new Rectangle(47, 72, 1, 1), WizardTextBg:new Rectangle(142, 24, 1, 1), WizardBg:new Rectangle(13, 26, 1, 1), MountBarBg:new Rectangle(24, 11, 1, 1), MountCardPanelBg:new Rectangle(144, 30, 1, 1), MountManuePanelBg:new Rectangle(121, 39, 1, 1), BaseMiniBg:new Rectangle(100, 1, 1, 1), BaseMiniBgSmall:new Rectangle(100, 1, 1, 1), FunctionBar:new Rectangle(450, 7, 1, 1), WindowTitle:new Rectangle(50, 15, 1, 1), PropSplitLine:new Rectangle(53, 0, 1, 1), Forging_GemEmbedBg2:new Rectangle(68, 30, 300, 80), WindowBgLeft:new Rectangle(30, 80, 1, 1), WindowBgRight:new Rectangle(65, 80, 1, 1), WindowUnderBgLeft:new Rectangle(30, 80, 1, 1), WindowUnderBgRight:new Rectangle(65, 80, 1, 1), SmallWinBg:new Rectangle(146, 125, 1, 100), RewardItemBigBg:new Rectangle(34, 35, 1, 1), RewardItemBg:new Rectangle(21, 21, 1, 1), ComboBg2:new Rectangle(18, 15, 1, 1), RoleBg3:new Rectangle(80, 125, 1, 1), PetGrowItemBg:new Rectangle(11, 11, 1, 1), AchievemenListTabBtnBg:new Rectangle(55, 28, 60, 1), TextBg5:new Rectangle(50, 18, 1, 1), SignUpRewardSmallBg:new Rectangle(4, 76, 229, 10), investmentLine:new Rectangle(73, 1, 1, 1), ShopMallBg:new Rectangle(10, 10, 1, 1), TargetBg2:new Rectangle(11, 5, 1, 1), LevelGiftBg:new Rectangle(118, 42, 1, 1), GuildWarResultBgNew:new Rectangle(351, 283, 1, 1), TargetBg:new Rectangle(18, 18, 1, 1), DecomposeGridBg:new Rectangle(68, 30, 300, 80), RankingBg:new Rectangle(177, 204, 1, 100), PanelBg3:new Rectangle(26, 23, 1, 1), WindowBg3:new Rectangle(134, 54, 80, 300), MountWinBg:new Rectangle(25, 25, 1, 1), RankingListBg:new Rectangle(22, 21, 1, 1), selectFilter2:new Rectangle(13, 13, 1, 1), ChallengeSectionBg:new Rectangle(73, 68, 1, 1), MedalBg:new Rectangle(10, 10, 1, 1), ActivityWindowBg:new Rectangle(80, 105, 40, 10), ShopGroupTabBg:new Rectangle(150, 20, 1, 1), AutoTransferBg:new Rectangle(154, 104, 1, 1), EquipItemBg:new Rectangle(23, 23, 1, 1), PetLifespan:new Rectangle(70, 4, 1, 1), PetExp:new Rectangle(70, 4, 1, 1), PetLife:new Rectangle(70, 4, 1, 1), VipProgressBg:new Rectangle(55, 17, 1, 1), SkillRune_nameBg:new Rectangle(57, 11, 1, 1), VipCurrentBg:new Rectangle(20, 20, 55, 55), WineDetailBg:new Rectangle(125, 115, 1, 1), VipProgress:new Rectangle(125, 7, 120, 1), RewardBg2:new Rectangle(5, 36, 133, 1), RefreshAttrBg:new Rectangle(13, 9, 1, 1), RefreshAttrLockBg:new Rectangle(13, 9, 1, 1), ForgingSelectBg:new Rectangle(20, 20, 13, 13), PetLifeBg:new Rectangle(17, 6, 1, 1), PetExp:new Rectangle(50, 1, 1, 9), lifeBg:new Rectangle(4, 3, 17, 2), lifeTop:new Rectangle(4, 3, 17, 2), PetLife:new Rectangle(48, 5, 1, 1), EnterCopyBtn:new Rectangle(44, 17, 1, 1), EnterCopyBtn_upSkin:new Rectangle(44, 17, 1, 1), EnterCopyBtn_overSkin:new Rectangle(44, 17, 1, 1), RedButton:new Rectangle(30, 14, 2, 2), GreenProcessPoint:new Rectangle(2, 3, 3, 6), SystemSetBarBg:new Rectangle(15, 5, 1, 1), StrengthenBarBg:new Rectangle(14, 2, 1, 1), StrengthenBar:new Rectangle(14, 2, 1, 1), StrengthenBarBg2:new Rectangle(54, 2, 1, 1), StrengthenBar2:new Rectangle(120, 2, 1, 1), ExpBar2:new Rectangle(62, 5, 1, 1), GuildWarOtherProgress:new Rectangle(32, 5, 1, 1), GuildWarSelfProgress:new Rectangle(32, 5, 1, 1), shortcutItemBg:new Rectangle(5, 5, 32, 32), shortcutItemBg2:new Rectangle(5, 5, 32, 32), TextBg:new Rectangle(34, 5, 149, 67), TextBgDisable:new Rectangle(45, 10, 4, 2), LevelBg:new Rectangle(8, 8, 4, 4), SkillRuneBg:new Rectangle(10, 10, 20, 20), SkillRuneBgDisable:new Rectangle(10, 10, 20, 20), RegionTitleBg:new Rectangle(21, 11, 1, 1), PetGrayBg:new Rectangle(5, 5, 1, 1), ChatPrivateTipBg:new Rectangle(20, 10, 1, 1), ChatPrivateToolBg:new Rectangle(25, 12, 1, 1), ChatTrumpetPanelTop:new Rectangle(132, 57, 1, 1), BattlefieldListBg:new Rectangle(100, 40, 1, 1), channel_overSkin:new Rectangle(18, 10, 1, 1), TaskGuild_NotSelectBg:new Rectangle(27, 37, 1, 1), TaskGuild_SelectBg:new Rectangle(19, 16, 1, 1), TaskGet:new Rectangle(16, 12, 1, 1), PetShape:new Rectangle(18, 10, 1, 1), taskLightMask:new Rectangle(8, 8, 20, 13), relive_SplitLine:new Rectangle(30, 5, 30, 1), TaskTrack_Bg:new Rectangle(127, 72, 1, 1), ShopItemBg:new Rectangle(20, 20, 30, 30), DefenseCopyUnfoldItemBg:new Rectangle(41, 52, 1, 1), DefenseCopyUnfoldSelectBg:new Rectangle(23, 24, 1, 1), TaskDialog_bg:new Rectangle(387, 72, 1, 1), TaskDialogReward_bg:new Rectangle(300, 54, 60, 1), TaskTalk_bg:new Rectangle(75, 20, 1, 1), TaskTalkRight_bg:new Rectangle(25, 26, 10, 1), VipReCharge:new Rectangle(78, 20, 1, 1), NpcTaskTalkBg:new Rectangle(75, 25, 1, 1), PetItemBg:new Rectangle(5, 5, 8, 8), SkillItemSelectedBg:new Rectangle(21, 21, 1, 1), brownBtn2:new Rectangle(21, 13, 1, 1), AchievemntTotalProgressBar:new Rectangle(45, 10, 1, 1), AchievemntTotalProgressBg:new Rectangle(50, 10, 1, 1), OpenServerSevenDayBgNumOne:new Rectangle(123, 28, 1, 1), LineOffBtn:new Rectangle(19, 22, 1, 1), LineOffCopyCellBtn:new Rectangle(17, 11, 1, 1), SkillRuneLevelUpBtn:new Rectangle(33, 11, 1, 1), MsgRollTipBg1:new Rectangle(80, 17, 100, 1), MsgRollTipBg2:new Rectangle(80, 17, 100, 1), MsgRollTipBg3:new Rectangle(80, 17, 100, 1), MsgRollTipBg4:new Rectangle(80, 17, 100, 1), MsgRollTipBg5:new Rectangle(60, 15, 40, 1), MsgRollTipBg6:new Rectangle(60, 15, 40, 1), MinigBg:new Rectangle(5, 5, 26, 39), SunbathCopyInfoBg:new Rectangle(0, 196, 1, 252), ZuandanPackageBg:new Rectangle(100, 64, 1, 1), ItemColorBg1:new Rectangle(6, 6, 24, 24), ItemColorBg2:new Rectangle(6, 6, 24, 24), ItemColorBg3:new Rectangle(6, 6, 24, 24), ItemColorBg4:new Rectangle(6, 6, 24, 24), ItemColorBg5:new Rectangle(6, 6, 24, 24), GuildTaskRenderBg0:new Rectangle(5, 5, 9, 10), GuildTaskRenderBg1:new Rectangle(5, 5, 9, 10), GiftBagGetWin_Bg:new Rectangle(0, 52, 297, 147), lotteryDrawPlayPlayBtn:new Rectangle(27, 0, 2, 50), ToolTipXiLianYLBg:new Rectangle(3, 3, 21, 14), QQYellowBlockBg:new Rectangle(22, 20, 2, 2), QQBlueBlockBg:new Rectangle(22, 20, 2, 2), TipBg:new Rectangle(14, 8, 1, 1)};

        public function ResourceConst()
        {
            return;
        }// end function

        public static function getScaleColor(param1:uint, param2:Number = 0, param3:Number = 0, param4:Number = -1, param5:Number = -1, param6:DisplayObjectContainer = null) : ScaleBitmap
        {
            var _loc_8:ScaleBitmap = null;
            var _loc_7:* = new Rectangle(1, 1, 1, 1);
            var _loc_9:* = GlobalClass.getBitmapDataByColor(param1);
            if (_loc_9 != null)
            {
                _loc_8 = UICompomentPool.getUICompoment(ScaleBitmap) as ScaleBitmap;
                _loc_8.bitmapData = _loc_9.clone();
                _loc_8.createDisposeChildren();
                _loc_8.scale9Grid = _loc_7;
            }
            _loc_8.x = param2;
            _loc_8.y = param3;
            if (param4 > 0)
            {
                _loc_8.width = param4;
            }
            if (param5 > 0)
            {
                _loc_8.height = param5;
            }
            if (param6 != null)
            {
                param6.addChild(_loc_8);
            }
            return _loc_8;
        }// end function

        public static function getScaleBitmap(param1:String, param2:Number = 0, param3:Number = 0, param4:Number = -1, param5:Number = -1, param6:DisplayObjectContainer = null) : ScaleBitmap
        {
            var _loc_7:* = getRectangle(param1);
            var _loc_8:* = GlobalClass.getScaleBitmap(param1, _loc_7);
            _loc_8.x = param2;
            _loc_8.y = param3;
            if (param4 > 0)
            {
                _loc_8.width = param4;
            }
            if (param5 > 0)
            {
                _loc_8.height = param5;
            }
            if (param6 != null)
            {
                param6.addChild(_loc_8);
            }
            return _loc_8;
        }// end function

        public static function getRectangle(param1:String) : Rectangle
        {
            var _loc_2:* = _scaleMap[param1] as Rectangle;
            if (!_loc_2)
            {
                _loc_2 = _defaultRec;
            }
            return _loc_2;
        }// end function

    }
}
